home *** CD-ROM | disk | FTP | other *** search
- Path: news.oanet.com!usenet
- From: rolleman@freenet.edmonton.ab.ca
- Newsgroups: comp.lang.c++
- Subject: Re: Need help with buttons!
- Date: Sat, 06 Jan 1996 21:32:21 GMT
- Organization: Central News Services
- Message-ID: <4cmvgh$75p@hermes.oanet.com>
- References: <4ckad5$13pg@news.gate.net>
- NNTP-Posting-Host: dh.oanet.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- debmcd@isysfla.com wrote:
-
- >I am writing a Windows multimedia program in Visual C++...
-
- >In this program, there is a button that when pressed, will execute functions that take some time to complete. While this
- >execution is occuring, I don't want the user to be able to press the button again. Does any one know of a way to lock out all
- >mouse clicks until certain commands are finished executing????
-
- >(I have tried changing to the WAIT icon and disabling, or graying, the button as well as the entire window...this does not help.
- >When this was done, all mouse click-messages are sent to the queue and still processed when the previous execution is
- >complete.) For example, if the button were to play an audio clip when pressed, and the user clicks the mouse over the button
- >again, before the audio clip is finished, the audio clip would play again--and I don't want this!
-
- >Please help!!
-
- >Thank you!
-
- >D. McDonough
-
-
- Handle the messages yourself after the funtion has completed the task
-
- Dave Rolleman rolleman@freenet.edmonton.ab.ca
-
-